.class public Lcom/bitauto/autoeasy/ADActivity;
.super Landroid/app/Activity;
.source "ADActivity.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/bitauto/autoeasy/ADActivity$ADhandler;
    }
.end annotation


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 17
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    return-void
.end method


# virtual methods
.method public onCreate(Landroid/os/Bundle;)V
    .locals 7
    .parameter "icicle"

    .prologue
    const/16 v5, 0x400

    .line 21
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 23
    const/4 v4, 0x1

    invoke-virtual {p0, v4}, Lcom/bitauto/autoeasy/ADActivity;->requestWindowFeature(I)Z

    .line 25
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/ADActivity;->getWindow()Landroid/view/Window;

    move-result-object v4

    invoke-virtual {v4, v5, v5}, Landroid/view/Window;->setFlags(II)V

    .line 28
    const v4, 0x7f030019

    invoke-virtual {p0, v4}, Lcom/bitauto/autoeasy/ADActivity;->setContentView(I)V

    .line 29
    const v4, 0x7f0b0050

    invoke-virtual {p0, v4}, Lcom/bitauto/autoeasy/ADActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/ImageView;

    .line 30
    .local v2, view:Landroid/widget/ImageView;
    const/high16 v4, 0x7f02

    invoke-virtual {v2, v4}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 32
    const-string v4, "connectivity"

    invoke-virtual {p0, v4}, Lcom/bitauto/autoeasy/ADActivity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/net/ConnectivityManager;

    .line 33
    .local v0, manager:Landroid/net/ConnectivityManager;
    invoke-virtual {v0}, Landroid/net/ConnectivityManager;->getActiveNetworkInfo()Landroid/net/NetworkInfo;

    move-result-object v1

    .line 35
    .local v1, networkinfo:Landroid/net/NetworkInfo;
    if-eqz v1, :cond_0

    invoke-virtual {v1}, Landroid/net/NetworkInfo;->isAvailable()Z

    .line 43
    :cond_0
    new-instance v3, Landroid/os/Handler;

    invoke-direct {v3}, Landroid/os/Handler;-><init>()V

    .line 44
    .local v3, x:Landroid/os/Handler;
    new-instance v4, Lcom/bitauto/autoeasy/ADActivity$ADhandler;

    invoke-direct {v4, p0}, Lcom/bitauto/autoeasy/ADActivity$ADhandler;-><init>(Lcom/bitauto/autoeasy/ADActivity;)V

    const-wide/16 v5, 0x1f4

    invoke-virtual {v3, v4, v5, v6}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 46
    return-void
.end method

.method public onPause()V
    .locals 0

    .prologue
    .line 55
    invoke-super {p0}, Landroid/app/Activity;->onPause()V

    .line 56
    invoke-static {p0}, Lcom/mobclick/android/MobclickAgent;->onPause(Landroid/content/Context;)V

    .line 57
    return-void
.end method

.method protected onResume()V
    .locals 0

    .prologue
    .line 50
    invoke-super {p0}, Landroid/app/Activity;->onResume()V

    .line 51
    invoke-static {p0}, Lcom/mobclick/android/MobclickAgent;->onResume(Landroid/content/Context;)V

    .line 52
    return-void
.end method
